package com.wang.tool.serialize;

import com.wang.tool.common.SimpleException;


public class SerializationException extends SimpleException {

    public static final String DESERIALIZE_ERROR = "deserialize_error";
    public static final String SERIALIZE_ERROR = "serialize_error";

    public SerializationException(String message) {
        super(message);
    }


    /**
     * @param code    异常码
     * @param pattern 信息 参数异常{0}不可为空
     * @param args    eg:商品id
     */
    public SerializationException(String code, String pattern, Object... args) {
        super(code,pattern,args);
    }


    /**
     * @param cause   源异常
     * @param message 异常码
     */
    public SerializationException(Throwable cause, String message) {
        super(cause, message);
    }

    /**
     * @param cause   源异常
     * @param code    异常码
     * @param message 异常信息
     */
    public SerializationException(Throwable cause, String code, String message) {
        super(cause, code,message);
    }
}
